package com.example.jdx;

import android.content.Intent;
import android.media.Image;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class uc3 extends AppCompatActivity {

    private Button back;
    private ImageView image1,image2,image3,image4,image5;
    private Image background;
    @Override

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_uc3);
        back=findViewById(R.id.back);
        image1=findViewById(R.id.i1);

        image2=findViewById(R.id.i2);

        image3=findViewById(R.id.i3);
       // imageView3.setImageDrawable(getResources().getDrawable(R.drawable.t016cefc9d432bd40e0));
        image4=findViewById(R.id.i4);
        image5=findViewById(R.id.i5);
        image1.getImageMatrix();
        Handler handler1 = new Handler();
        Handler handler2 = new Handler();
        Handler handler3 = new Handler();
        Handler handler4 = new Handler();
        Handler handler5 = new Handler();
        handler1.postDelayed(new Runnable() {
            @Override
            public void run() {
                image1.setImageDrawable(getResources().getDrawable(R.drawable.as0914145440));
            }
        }, 1200);

        handler2.postDelayed(new Runnable() {
            @Override
            public void run() {
                image2.setImageDrawable(getResources().getDrawable(R.drawable.c0326155348));
            }
        }, 2400);

        handler3.postDelayed(new Runnable() {
            @Override
            public void run() {
                image3.setImageDrawable(getResources().getDrawable(R.drawable.d40dab04a4a63d2a0158aa07dacddee52dfe1bb));
            }
        }, 3600);

        handler4.postDelayed(new Runnable() {
            @Override
            public void run() {
                image4.setImageDrawable(getResources().getDrawable(R.drawable.aav));
            }
        }, 4800);

        handler5.postDelayed(new Runnable() {
            @Override
            public void run() {
                image5.setImageDrawable(getResources().getDrawable(R.drawable.aaav));
            }
        }, 5000);

        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(uc3.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }
}
